home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _PanelStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  2.1 KB  |  65 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.core.mx_internal;
  5.    import mx.skins.halo.PanelSkin;
  6.    import mx.skins.halo.TitleBackground;
  7.    import mx.styles.CSSStyleDeclaration;
  8.    import mx.styles.StyleManager;
  9.    
  10.    public class _PanelStyle
  11.    {
  12.       public function _PanelStyle()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          var effects:Array = null;
  20.          var fbs:IFlexModuleFactory = param1;
  21.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Panel");
  22.          if(!style)
  23.          {
  24.             style = new CSSStyleDeclaration();
  25.             StyleManager.setStyleDeclaration("Panel",style,false);
  26.             effects = style.mx_internal::effects;
  27.             if(!effects)
  28.             {
  29.                effects = style.mx_internal::effects = new Array();
  30.             }
  31.             effects.push("resizeEndEffect");
  32.             effects.push("resizeStartEffect");
  33.          }
  34.          if(style.defaultFactory == null)
  35.          {
  36.             style.defaultFactory = function():void
  37.             {
  38.                this.borderColor = 14869218;
  39.                this.paddingLeft = 0;
  40.                this.roundedBottomCorners = false;
  41.                this.dropShadowEnabled = true;
  42.                this.resizeStartEffect = "Dissolve";
  43.                this.borderSkin = PanelSkin;
  44.                this.statusStyleName = "windowStatus";
  45.                this.borderAlpha = 0.4;
  46.                this.borderStyle = "default";
  47.                this.paddingBottom = 0;
  48.                this.resizeEndEffect = "Dissolve";
  49.                this.paddingTop = 0;
  50.                this.borderThicknessRight = 10;
  51.                this.titleStyleName = "windowStyles";
  52.                this.cornerRadius = 4;
  53.                this.paddingRight = 0;
  54.                this.borderThicknessLeft = 10;
  55.                this.titleBackgroundSkin = TitleBackground;
  56.                this.borderThickness = 0;
  57.                this.borderThicknessTop = 2;
  58.                this.backgroundColor = 16777215;
  59.             };
  60.          }
  61.       }
  62.    }
  63. }
  64.  
  65.